package com.liupei.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author liu pei
 * @since 2021-03-14
 */
@ApiModel(value="SysUser对象", description="")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "user_id", type = IdType.ID_WORKER)
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    private String name;

    @ApiModelProperty(value = "密码")
    private String password;

    private Long deptId;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "状态 0:禁用，1:正常")
    private Integer status;

    @ApiModelProperty(value = "创建用户id")
    private Long userIdCreate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "性别")
    private Long sex;

    @ApiModelProperty(value = "出身日期")
    private LocalDateTime birth;

    private Long picId;

    @ApiModelProperty(value = "现居住地")
    private String liveAddress;

    @ApiModelProperty(value = "爱好")
    private String hobby;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在地区")
    private String district;

    @ApiModelProperty(value = "1系统用户2前台用户")
    private Integer userType;

    @ApiModelProperty(value = "微信登录")
    private String wxLoing;

    @ApiModelProperty(value = "QQ登录")
    private String qqLogin;

    @ApiModelProperty(value = "微博登录")
    private String wbLogin;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;


    public Long getUserId() {
        return userId;
    }

    public SysUser setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public SysUser setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getName() {
        return name;
    }

    public SysUser setName(String name) {
        this.name = name;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public SysUser setPassword(String password) {
        this.password = password;
        return this;
    }

    public Long getDeptId() {
        return deptId;
    }

    public SysUser setDeptId(Long deptId) {
        this.deptId = deptId;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public SysUser setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public SysUser setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public SysUser setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Long getUserIdCreate() {
        return userIdCreate;
    }

    public SysUser setUserIdCreate(Long userIdCreate) {
        this.userIdCreate = userIdCreate;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public SysUser setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public SysUser setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Long getSex() {
        return sex;
    }

    public SysUser setSex(Long sex) {
        this.sex = sex;
        return this;
    }

    public LocalDateTime getBirth() {
        return birth;
    }

    public SysUser setBirth(LocalDateTime birth) {
        this.birth = birth;
        return this;
    }

    public Long getPicId() {
        return picId;
    }

    public SysUser setPicId(Long picId) {
        this.picId = picId;
        return this;
    }

    public String getLiveAddress() {
        return liveAddress;
    }

    public SysUser setLiveAddress(String liveAddress) {
        this.liveAddress = liveAddress;
        return this;
    }

    public String getHobby() {
        return hobby;
    }

    public SysUser setHobby(String hobby) {
        this.hobby = hobby;
        return this;
    }

    public String getProvince() {
        return province;
    }

    public SysUser setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return city;
    }

    public SysUser setCity(String city) {
        this.city = city;
        return this;
    }

    public String getDistrict() {
        return district;
    }

    public SysUser setDistrict(String district) {
        this.district = district;
        return this;
    }

    public Integer getUserType() {
        return userType;
    }

    public SysUser setUserType(Integer userType) {
        this.userType = userType;
        return this;
    }

    public String getWxLoing() {
        return wxLoing;
    }

    public SysUser setWxLoing(String wxLoing) {
        this.wxLoing = wxLoing;
        return this;
    }

    public String getQqLogin() {
        return qqLogin;
    }

    public SysUser setQqLogin(String qqLogin) {
        this.qqLogin = qqLogin;
        return this;
    }

    public String getWbLogin() {
        return wbLogin;
    }

    public SysUser setWbLogin(String wbLogin) {
        this.wbLogin = wbLogin;
        return this;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public SysUser setIsDel(Integer isDel) {
        this.isDel = isDel;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        "userId=" + userId +
        ", username=" + username +
        ", name=" + name +
        ", password=" + password +
        ", deptId=" + deptId +
        ", email=" + email +
        ", mobile=" + mobile +
        ", status=" + status +
        ", userIdCreate=" + userIdCreate +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", sex=" + sex +
        ", birth=" + birth +
        ", picId=" + picId +
        ", liveAddress=" + liveAddress +
        ", hobby=" + hobby +
        ", province=" + province +
        ", city=" + city +
        ", district=" + district +
        ", userType=" + userType +
        ", wxLoing=" + wxLoing +
        ", qqLogin=" + qqLogin +
        ", wbLogin=" + wbLogin +
        ", isDel=" + isDel +
        "}";
    }
}
